package com.system.blogAdmin.bundary.service.impl;

import com.cnc.common.persistence.biz.BaseBizImpl;
import com.cnc.common.persistence.dao.BaseDao;
import com.system.blogAdmin.bundary.service.MainIndexService;
import com.system.blogAdmin.bundary.entity.MainIndex;
import com.system.blogAdmin.bundary.dao.MainIndexDao;
import com.system.blogAdmin.bundary.service.MainIndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * @创建时间:  2017-7-5 17:41:32
 * @版本: 1.0
 */
@Service("mainIndexService")
public class MainIndexServiceImpl extends BaseBizImpl<MainIndex> implements MainIndexService {

    @Autowired
    private MainIndexDao mainIndexDao;

    @Override
    protected BaseDao<MainIndex> getDao() {
        return mainIndexDao;
    }

    public MainIndex getMaxInfo(){
      return   mainIndexDao.getMaxInfo();
    }
}
